package com.fw.payment.bao;

import static org.springframework.beans.factory.config.BeanDefinition.SCOPE_PROTOTYPE;

import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.fw.payment.service.ServiceExecutor;
import com.fw.payment.service.ServiceOrder;
import com.fw.service.bean.EntryBean;
import com.fw.service.masterdata.MasterDataService;

@Component
@Scope(SCOPE_PROTOTYPE)
public class MasterDataBAO extends AbstractBAO implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    @Autowired
    protected MasterDataService masterDataService;

    @SuppressWarnings("unchecked")
    public List<EntryBean<Long, String>> selectAllBOUserRole() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllBOUserRole");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<Long, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllBOUserStatus() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllBOUserStatus");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<Long, String>> selectAllBOUserUsername() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllBOUserUsername");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<Long, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    e.printStackTrace();
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<Long, String>> selectAllBOUserEmployeeName() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllBOUserEmployeeName");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<Long, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    e.printStackTrace();
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<Long, String>> selectAllBOUserEmployeeId() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllBOUserEmployeeId");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<Long, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    e.printStackTrace();
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllBOUserCreateBy() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllBOUserCreateBy");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllBOUserLastUpdateBy() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllBOUserLastUpdateBy");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectBOUserStatusByCurrentStatus(String status) throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectBOUserStatusByCurrentStatus");
	    serviceOrder.setParameterTypes(new Class[] { String.class });
	    serviceOrder.setParameterValues(new Object[] { status });

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllMerchantProfileStatus() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllMerchantProfileStatus");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllMerchantProfileServiceType() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllMerchantProfileServiceType");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllMerchantProfileMccCode() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllMerchantProfileMccCode");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllCountry() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllCountry");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllMerchantProfileId() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllMerchantProfileId");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllMerchantProfileCompanyName() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllMerchantProfileCompanyName");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllMerchantProfileURL() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllMerchantProfileURL");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllMerchantProfileProjectContactPerson() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllMerchantProfileProjectContactPerson");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectMerchantProfileStatusByCurrentStatus(String status) throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectMerchantProfileStatusByCurrentStatus");
	    serviceOrder.setParameterTypes(new Class[] { String.class });
	    serviceOrder.setParameterValues(new Object[] { status });

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllServiceProfileStatus() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllServiceProfileStatus");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllServiceProfilePaymentType() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllServiceProfilePaymentType");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllBank() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllBank");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<Long, String>> selectAllServiceProfile() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllServiceProfile");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<Long, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllServiceProfileHost() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllServiceProfileHost");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<Long, String>> selectAllMerchantUserRole() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllMerchantUserRole");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<Long, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllMerchantUserStatus() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllMerchantUserStatus");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<Long, String>> selectAllMerchantUser() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllMerchantUser");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<Long, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<Long, String>> selectAllMerchantUserParentMerchant() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllMerchantUserParentMerchant");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<Long, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectMerchantUserStatusByCurrentStatus(String status) throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectMerchantUserStatusByCurrentStatus");
	    serviceOrder.setParameterTypes(new Class[] { String.class });
	    serviceOrder.setParameterValues(new Object[] { status });

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<Long, String>> selectAllMerchantUserMerchantProfile() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllMerchantUserMerchantProfile");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<Long, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<Long, String>> selectAllMerchantUserUsername() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllMerchantUserUsername");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<Long, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<Long, String>> selectAllMerchantUserName() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllMerchantUserName");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<Long, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllMerchantUserCreateBy() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllMerchantUserCreateBy");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllMerchantUserLastUpdateBy() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllMerchantUserLastUpdateBy");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllMerchantUserEmail() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllMerchantUserEmail");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<Long, String>> selectAllMerchantUserServiceProfile(String merchantID) throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllMerchantUserServiceProfile");
	    serviceOrder.setParameterTypes(new Class[] { String.class });
	    serviceOrder.setParameterValues(new Object[] { merchantID });

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<Long, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllServiceProfileServiceId() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllServiceProfileServiceId");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllServiceProfileMerchantId() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllServiceProfileMerchantId");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllServiceProfileMerchantName() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllServiceProfileMerchantName");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllServiceProfileCompanyName() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllServiceProfileCompanyName");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllServiceProfileProjectContact() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllServiceProfileProjectContact");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllServiceProfileMdr() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllServiceProfileMdr");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllServiceProfileServiceFee() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllServiceProfileServiceFee");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectServiceProfileStatusByCurrentStatus(String status) throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectServiceProfileStatusByCurrentStatus");
	    serviceOrder.setParameterTypes(new Class[] { String.class });
	    serviceOrder.setParameterValues(new Object[] { status });

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllParentMerchantStatus() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllParentMerchantStatus");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<Long, String>> selectAllParentMerchant() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllParentMerchant");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<Long, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }

    @SuppressWarnings("unchecked")
    public List<EntryBean<String, String>> selectAllTitleName() throws Exception {
	try {
	    ServiceOrder serviceOrder = new ServiceOrder();
	    serviceOrder.setServiceClass(this.masterDataService);
	    serviceOrder.setMethodName("selectAllTitleName");
	    serviceOrder.setParameterTypes(new Class[] {});
	    serviceOrder.setParameterValues(new Object[] {});

	    ServiceExecutor serviceExecutor = new ServiceExecutor(serviceOrder, timeout);
	    serviceOrder = serviceExecutor.callService();
	    if (serviceOrder.getResultCode() != null && serviceOrder.getResultCode().equals(new Integer(0))) {
		return (List<EntryBean<String, String>>) serviceOrder.getReturnValue();
	    } else {
		return null;
	    }
	} catch (Exception e) {
	    throw e;
	}
    }
}
